<template>
  <div id="upLoadAbnomal">
    <van-sticky>
      <van-nav-bar title="异常上报" left-arrow @click-left="onClickLeft"  />
    </van-sticky>
    <div class="getAbnormal">
      <van-search
        :value=" value"
        input-align="center"
        style="border-radius:5px"
        placeholder="输入医废袋编号上报异常信息"
      />
      <div class="qrcode" @click="toDetail">
        <div class="qrBox">
          <van-icon name="qr" />
        </div>
        <span>扫码医废袋二维码</span>
      </div>
    </div>
    <div class="btn" @click="toDetail">查看历史</div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  methods: {
    onClickLeft() {
      this.$router.push({
        path: "/ScanColl",
      });
    },
    toDetail(){
        this.$router.push({
            path:'/abnormalDetail'
        })
    }
  },
};
</script>
<style lang="less" scoped>
#upLoadAbnomal {
  box-sizing: border-box;
  background-color: #dcdfe6;
  width: 100vw;
  min-height: 100vh;
  position: relative;
  .getAbnormal {
    height: 120px;
    background-color: #fff;
    margin: 0 15px;
    border-radius: 10px;
    margin-top: 15px;
    padding: 20px;
    p {
      margin: 0;
      padding: 0;
    }
    .van-search {
      padding: 0;
      padding-bottom: 20px;
    }
    .van-search__content {
      border-radius: 5px;
    }
    .qrcode {
      height: 44px;
      background: #f6f8fe;
      border-radius: 8px;
      display: flex;
      justify-content: center;
      align-items: center;
      span {
        height: 17px;
        font-size: 14px;
        font-family: Source Han Sans CN, Source Han Sans CN-Regular;
        font-weight: 400;
        text-align: left;
        color: #b4b4b4;
        line-height: 18px;
      }
      .qrBox {
        width: 28px;
        height: 28px;
        background: #f7f6ff;
        border: 1px solid #707070;
        border-radius: 50%;
        text-align: center;
        line-height: 34px;
        margin-right: 5px;
      }
    }
  }
  .btn {
    width: 100px;
    height: 18px;
    line-height: 18px;
    font-size: 18px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    text-align: center;
    color: #707070;
    position: absolute;
    bottom: 50px;
    left: calc(50% - 50px);
  }
}
</style>